package com.rao.quartz.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: raoguang
 * @Date: 2022/05/31/23:48
 * @Description:
 */
@RestController
public class TestController {

    @GetMapping("/test")
    @PreAuthorize("hasAnyAuthority('system:dept:list')")
    public String TestController() {
        return "hello test!";
    }

    @GetMapping("/hello")
    public String Hello() {
        return "hello world!";
    }
}
